export class userbrokeragerecord {
  id?: number;
  name = '';
  uid = ''
  linkId = ''
  linkType = ''
  type?: number
  title = ''
  price = ''
  balance = ''
  mark = ''
  status = ''
  frozenTime = ''
  thawTime = ''

  brokerageLevel = ''
  constructor(data?: userbrokeragerecord) {
    data && this.setProps(data);
  }

  setProps(data: userbrokeragerecord) {
    (Object.keys(this) as Array<keyof Iuserbrokeragerecord>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Iuserbrokeragerecord = Omit<userbrokeragerecord, 'setProps'>